﻿<%@ Page Title="" Language="C#" MasterPageFile="../Share/Default.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="Model_Default" %>

<%@ Register Src="../Control/ModelMenu.ascx" TagName="ModelMenu" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="Server">
    <asp:GridView ID="gv" runat="server" SkinID="gvList">
        <Columns>
            <asp:TemplateField HeaderText="编辑">
                <ItemTemplate>
                    <img src="../../images/edit.gif" title="编辑" />
                    <asp:HyperLink ID="HyperLink1" runat="server" 
                        NavigateUrl='<%# Eval("ModelId", "Edit.aspx?id={0}") %>' Text="编辑"></asp:HyperLink>
                </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField>
                <HeaderTemplate>
                    删除
                </HeaderTemplate>
                <ItemTemplate>
                    <img src="../../images/edit.gif" title="编辑" />
                    <a onclick="return confirm('确定删除:Model:<%#Eval("ModelName") %>?')" href="Delete.aspx?id=<%#Eval("ModelId") %>">
                        删除</a>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            暂无数据
        </EmptyDataTemplate>
    </asp:GridView>
</asp:Content>
